#include <vector>
#include <d3dx9.h>
//#include "coldet.h"

#ifndef __ASEOBJECT_H
#define __ASEOBJECT_H

#include <string>

class CASEObject
{
private:
	std::vector< LPDIRECT3DVERTEXBUFFER9 >	vec_pVBMeshByMat;
	std::vector< LPDIRECT3DINDEXBUFFER9 >	vec_pIBMeshByMat;
	std::vector< LPDIRECT3DVERTEXBUFFER9 >	vec_pVBGeomTexturaByMat;
	std::vector< LPDIRECT3DTEXTURE9 >		vec_textures;
	std::vector< int >						vec_numCaresByMat;
	std::vector <std::string>				listaTexturas;


public:

	D3DXVECTOR3 pos, CCmin, CCmax;
	unsigned int numVertices, numCaras, numTVertices, numTCaras, numTexturas;
	float									m_Radius;
	

	CASEObject();
	BOOL				Load				( const char *nombreFichero, LPDIRECT3DDEVICE9 g_pd3dDevice,
											   bool collision, char *nombreObjeto=NULL);

	void				CleanUp			( void );
	void				Render				( LPDIRECT3DDEVICE9 g_pd3dDevice );
	bool				IsInBoundingBox		( const D3DXVECTOR3 &Pos );

};

#endif